export interface ResposeData {
    ok: boolean,
    code: number,
    message: string,
}

//SKU对象的类型 
export interface SkuData {
    skuDefaultImg?: string,
    id?: string | number,
    isSale?: boolean,
    category3Id?: string | number,
    spuId?: string | number,
    tmId?: string | number,
    skuName?: string | number,
    price?: string | number,
    weight?: string | number,
    skuDesc?: string,
    skuAttrValueList?: [
        {
            id?: string | number,
            attrId?: string | number,
            valueId?: string | number
        }
    ],
    skuSaleAttrValueList?: [
        id?: string | number,
        saleAttrId?: string | number,
        saleAttrValueId?: string | number
    ],
}

// 获取sku接口返回的数据的ts类型
export interface SkuResponseData extends ResposeData {
    data: {
        records: SkuData[],
        total: number,
        size: number,
        pages: number
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
    }
}

// 获取sku商品的详情
export interface SkuInfoData extends ResposeData {
    data: SkuData
}